<?php
namespace RMD\AccountBundle\Entity;

use Doctrine\Common\Collections\ArrayCollection;

class Group
{
	private $id;
	private $groupSet_id;
	private $title;

	protected $groupSet;
	protected $subscribers;

	public function __construct() {
		$this->subscribers = new ArrayCollection();
	}

    /**
     * Get id
     *
     * @return integer 
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set groupSet_id
     *
     * @param integer $groupSetId
     * @return Group
     */
    public function setGroupSetId($groupSetId)
    {
        $this->groupSet_id = $groupSetId;
    
        return $this;
    }

    /**
     * Get groupSet_id
     *
     * @return integer 
     */
    public function getGroupSetId()
    {
        return $this->groupSet_id;
    }

    /**
     * Set title
     *
     * @param string $title
     * @return Group
     */
    public function setTitle($title)
    {
        $this->title = $title;
    
        return $this;
    }

    /**
     * Get title
     *
     * @return string 
     */
    public function getTitle()
    {
        return $this->title;
    }

    /**
     * Set groupSet
     *
     * @param \RMD\AccountBundle\Entity\GroupSet $groupSet
     * @return Group
     */
    public function setGroupSet(\RMD\AccountBundle\Entity\GroupSet $groupSet = null)
    {
        $this->groupSet = $groupSet;
    
        return $this;
    }

    /**
     * Get groupSet
     *
     * @return \RMD\AccountBundle\Entity\GroupSet 
     */
    public function getGroupSet()
    {
        return $this->groupSet;
    }

    /**
     * Add subscribers
     *
     * @param \RMD\AccountBundle\Entity\Subscriber $subscribers
     * @return Group
     */
    public function addSubscriber(\RMD\AccountBundle\Entity\Subscriber $subscribers)
    {
        $this->subscribers[] = $subscribers;
    
        return $this;
    }

    /**
     * Remove subscribers
     *
     * @param \RMD\AccountBundle\Entity\Subscriber $subscribers
     */
    public function removeSubscriber(\RMD\AccountBundle\Entity\Subscriber $subscribers)
    {
        $this->subscribers->removeElement($subscribers);
    }

    /**
     * Get subscribers
     *
     * @return \Doctrine\Common\Collections\Collection 
     */
    public function getSubscribers()
    {
        return $this->subscribers;
    }
}